package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.vo.ActRpcVo;
import com.weixing.mall.provider.api.service.ActivityRpcService;
import org.springframework.stereotype.Component;

/**
 * @Author wx
 * @Date 2020/1/9 15:18
 * @Version 1.0
 */
@Component
public class ActivityRpcServiceFallback implements ActivityRpcService {

    @Override
    public Result<ActRpcVo> selectById(Long actId) {
        return ResultUtil.error("服务暂时不可用");
    }
}
